var Webpack = require('webpack')
var WebpackDevServer = require('webpack-dev-server')

var config = require('./webpack.config.js')
config.entry.app.unshift('webpack-dev-server/client?http://localhost:8080/')
var compiler = new Webpack(config)
var server = new WebpackDevServer(compiler,{
    stats: {colors: true}
})
server.listen(8080)